package com.estate.system.domain;

// ContactResp.java - 联系人数据模型

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.estate.common.config.JsonbStringTypeHandler;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@TableName("clients")
@EqualsAndHashCode(callSuper = false)
@JsonIgnoreProperties(ignoreUnknown = true)
public class Client {
    private Long id;
    private Integer clientId;
    private String firstName;
    private String lastName;
    private String email;
    private String title;
    private String source;
    private Boolean isActive;
    private Boolean isCompany;
    private Date lastModified;
    @TableField(typeHandler = JsonbStringTypeHandler.class)
    private String address;
    @TableField(typeHandler = JsonbStringTypeHandler.class)
    private String phone;
    @TableField(typeHandler = JsonbStringTypeHandler.class)
    private String communicateVia;
    @TableField(typeHandler = JsonbStringTypeHandler.class)
    private String types;
    @TableField(typeHandler = JsonbStringTypeHandler.class)
    private String agents;
    @TableField(typeHandler = JsonbStringTypeHandler.class)
    private String criteria;
    @TableField(typeHandler = JsonbStringTypeHandler.class)
    private String office;
    private Date createdAt;
    private Date updatedAt;

}
